﻿function refresh() {
	domain = chrome.extension.getBackgroundPage().domain;
	tabId = chrome.extension.getBackgroundPage().tabn;
	chrome.extension.getBackgroundPage().xmlhttprequest('http://ip-api.com/json/'+domain);	
	w = chrome.extension.getBackgroundPage().w;
	document.getElementById('domaininfo').innerHTML = w;
	document.getElementById('refresh').onclick = refresh;	
}
document.getElementById('domaininfo').innerHTML = chrome.extension.getBackgroundPage().w;
document.getElementById('refresh').onclick = refresh;